package com.chunfeng.mypen.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Description: 题目试卷关系实体类
 * @author: 小雷
 * @createTime: 2023-11-13 19:18:47
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "题目-试卷关系实体", description = "用于存储题目和试卷关联信息")
public class TopicExam implements Serializable {
    /**
     * 序列化常量
     */
    @ApiModelProperty(value = "序列化字段", hidden = true)
    private static final long serialVersionUID = 3922184192899338592L;
    /**
     * 主键
     */
    @ApiModelProperty(value = "题目和试卷关系表ID", allowEmptyValue = true)
    private String id;
    /**
     * 题目ID
     */
    @ApiModelProperty(value = "题目ID", allowEmptyValue = true)
    private String topicId;
    /**
     * 试卷ID
     */
    @ApiModelProperty(value = "试卷ID", allowEmptyValue = true)
    private String examID;
    /**
     * 状态(0正常,1失效)
     */
    @TableLogic
    @ApiModelProperty(value = "状态(0未-删除,1-删除)", allowableValues = "0,1")
    private Integer status;
}
